Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add heartbeat helper method #372

Merged
merged 1 commit into from
Jun 13, 2019
Merged

Add heartbeat helper method #372

merged 1 commit into from
Jun 13, 2019

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Jun 13, 2019

This adds a helper method for sending heartbeat control messages with the ATTACH_CONTAINER_INPUT call.

@coveralls
Copy link

coveralls commented Jun 13, 2019

Coverage Status

Coverage increased (+0.1%) to 59.283% when pulling 1fbe219 on bamarni:heartbeat-helper into 2b48b4c on mesos:master.

@@ -220,6 +220,22 @@ func AttachContainerInputTTY(t *mesos.TTYInfo) *agent.Call {
}
}

func AttachContainerInputHeartbeat(heartbeat *agent.ProcessIO_Control_Heartbeat) *agent.Call {
Copy link
Contributor

@jdef jdef Jun 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Mind updating calls_test.go too?

@@ -3,7 +3,7 @@ package calls
import (
"time"

"github.com/mesos/mesos-go/api/v1/lib"
mesos "github.com/mesos/mesos-go/api/v1/lib"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we don't do this anywhere else, why here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No real reason, I use vscode and it keeps on updating it whenever I save the file, I'll revert.

This adds a helper method for sending heartbeat control messages with
the `ATTACH_CONTAINER_INPUT` call.
@jdef jdef merged commit 61cb21a into mesos:master Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants